package com.yf.zzmusic.pojo.vo.favoriteCount;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.time.ZoneOffset;

/**
 * 时间: 2024年3月19日 14点30分
 * 关于用户收藏的专辑的分页列表查询
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FavoriteCountOfAlbumVO {
  private Integer favoriteCountId;
  private Integer albumId;
  private String albumName;
  private String albumCover;
  private String albumSingerName;
  private Integer albumSingerId;
  /** !!!注意!!! 这里的时间是收藏表的收藏时间 */
  private LocalDateTime createTimer;
  public Long getCreateTimer() {
    if (createTimer!=null){
      long timestamp = createTimer.toInstant(ZoneOffset.of("+8")).toEpochMilli();
      return timestamp;
    }else {
      return null;
    }
  }
  public void setCreateTimer(LocalDateTime createTimer) {
    this.createTimer = createTimer;
  }

}
